home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Extensions… / Extension Shell ƒ / Extension.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-20  |  1.9 KB  |  68 lines  |  [TEXT/MPS ]

  1. /*________________________________________________________
  2.  
  3.     File: Extension.h
  4.  
  5.     C header file for a printing extension.
  6.  
  7.     Dave Hersey
  8.     Apple Developer Technical Support
  9.  
  10.     12/01/92 - dmh - Created.
  11.      4/26/93 - dmh - Updated to use recommended approach
  12.                       to global data initialization.
  13.      9/05/93 - dmh - Updated for b2.
  14.                     - Fixed minor problem with highlighting
  15.                      of editText panel items.
  16.                    - Switched to Exception.h assertion stuff
  17.                      for error checking.
  18.     12/18/93 - dmh - Updated for b3.
  19.      3/22/94 - dmh - Updated for b4.
  20.  
  21.     (Note: labels are in the Mark menu.)
  22.     
  23. __________________________________________________________*/
  24.  
  25. #include <Types.h>
  26. #include <Errors.h>
  27. #include <Resources.h>
  28. #include <ToolUtils.h>
  29. #include <GXExceptions.h>
  30. #include <Collections.h>
  31. #include <GXMessages.h>
  32. #include <GXPrinting.h>
  33.  
  34.  
  35. #define kCreator                    'GExt'            /* Our creator type.            */
  36. #define kExtensionCollectionType    kCreator        /* The collection type we use.    */
  37.  
  38. #define r_ExtensionPanel            6000            /* The ID of our dialog panel.    */
  39. #define kExtensionTurnedOff            0                /* We're turned on.                */
  40. #define kExtensionTurnedOn            1                /* We're turned off.            */
  41.  
  42. #define kDefaultSetting            kExtensionTurnedOn    /* We're on by default.            */
  43.  
  44.  
  45. typedef struct ExtensionCollection                    /* This is our collection type.    */
  46. {
  47.     char    extTurnedOn;                            /* On/off panel item value.        */
  48.     char    fillByte;
  49. } ExtensionCollection;
  50.  
  51.  
  52. // Prototypes:
  53.  
  54. extern    long A5Size (void);                            /* We need these to set up        */
  55. extern    void A5Init (void *);                        /* our A5 world.                */
  56.  
  57. OSErr    InitGlobalData(void);
  58. OSErr    NewInitialize(void);
  59. OSErr    NewShutDown(void);
  60. OSErr    NewSpoolPage(gxSpoolFile spFile, gxFormat aFormat, gxShape pgShape);
  61. OSErr    NewJobPrintDialog(gxDialogResult *dlogResult);
  62. OSErr    NewHandlePanelEvent(gxPanelInfoRecord *panelInfo);
  63. OSErr    SetUpPrintPanel(void);
  64. OSErr    GetJobCollectionItem(void *collectItem, long *collectSize,
  65.                              OSType collectType, short collectID);
  66.  
  67.  
  68.